package com.stropheware.droidDefense;

public class Achievement {

	public String name;
	public String description;
	public int numToComplete;
	public int numCompleted;
	public int achievementNum;
	public boolean isActive;
	
	public Achievement(int achievementNum, String name, String description, int numToComplete) {
		this.achievementNum = achievementNum;
		this.name = name;
		this.description = description;
		this.numToComplete = numToComplete;
		numCompleted = 0;
		isActive = false;
	}
	
	/*
	 * @return if achievement was made 
	 */
	public boolean increaseCompleted() {
		if(isActive) return (++numCompleted == numToComplete);
		else return isActive;
	}
}
